﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FakeXiecheng.API.Models
{
    /// <summary>
    /// 旅游路线图片
    /// </summary>
    public class TouristRoutePict
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        [MaxLength(100)]
        public string Url { get; set; }

        /// <summary>
        /// 路线主键
        /// </summary>
        [ForeignKey("TouristRoute")]
        public Guid TouristRouteId { get; set; }

        public TouristRoute TouristRoute { get; set; }
    }
}
